<template>
    <footer>
        <p>{{ configName }}</p>
    </footer>
</template>

<script>
    import store from "~/store"
    export default {
        name: "Footer",
        mounted() {
            this.systemName()
        },
        data() {
            return {
                configName: '',
            }
        },
        methods: {
            systemName() {
                this.configName = store.state.config?.topName
                this.configName = this.configName && this.configName !== '' ? this.configName : "救护消防应急救援中心微课系统"
            }
        }
    }
</script>

<style scoped>
    footer {
        background-color: #333;
        color: white;
        text-align: center;
        padding: 10px;
    }
</style>
